import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import { registerMicroApps, start } from 'qiankun';
Vue.config.productionTip = false;

new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
registerMicroApps([
  {
    name: 'sub-app-vue2',
    entry: '//localhost:8081',
    container: '#subapp-viewport',
    activeRule: '/sub-app-vue2'
  },
  {
    name: 'sub-app-vue3',
    entry: '//localhost:8082',
    container: '#subapp-viewport',
    activeRule: '/sub-app-vue3',
    props: {
      routerBase: '/sub-app-vue3'
    }
  }
])
start({
  sandbox: { strictStyleIsolation: true }
})